// Person.prototype.like = '泡脚'

// function Person() {
//     this.name = '梁总'
//     this.age = 18
// }
// let p = new Person()
// console.log(p);



class Person {
    constructor() {  // 构造函数
        this.name = '梁总'
        this.age = 18
    }
    like() {
        return `${this.name}泡脚`
    }

    static say() {
        return 'Hello'
    }
}

let p = new Person()
console.log(p);
